Wastholm.com

What they found was that, when there were two grates in place, the atom passed through it on many paths in a wave form, but, when the second grate was removed, it behaved like a particle and took only one path through.

So, what form it would take after passing through the first grate depended on whether the second grate was put in place afterward. Therefore, whether it continued as a particle or changed into a wave wasn't decided until a future event had already taken place.